package com.avecsys.quotemanager.pojos.menu;

import java.util.HashSet;
import java.util.Set;

import com.avecsys.quotemanager.pojos.BasePojo;

/**
 * SubMenuEntity entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class SubMenuEntity extends BasePojo implements java.io.Serializable {

	// Fields

	private Long subMenuId;
	private RootMenuEntity rootMenuEntity;
	private String subMenuName;
	private Long subMenuOrder;
	private String linkPath;
	private String icon;

	/**
	 * @return the icon
	 */
	public String getIcon() {
		return icon;
	}

	/**
	 * @param icon
	 *            the icon to set
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}

	/**
	 * @return the linkPath
	 */
	public String getLinkPath() {
		return linkPath;
	}

	/**
	 * @param linkPath
	 *            the linkPath to set
	 */
	public void setLinkPath(String linkPath) {
		this.linkPath = linkPath;
	}

	private Set menuItems = new HashSet(0);

	// Constructors

	/** default constructor */
	public SubMenuEntity() {
	}

	/** full constructor */
	/**
	 * @param rootMenuEntity
	 * @param subMenuName
	 * @param subMenuOrder
	 * @param menuItems
	 */
	public SubMenuEntity(RootMenuEntity rootMenuEntity, String subMenuName,
			Long subMenuOrder, Set menuItems) {
		this.rootMenuEntity = rootMenuEntity;
		this.subMenuName = subMenuName;
		this.subMenuOrder = subMenuOrder;
		this.menuItems = menuItems;
	}

	// Property accessors

	/**
	 * @return Long
	 */
	public Long getSubMenuId() {
		return this.subMenuId;
	}

	/**
	 * @param subMenuId
	 */
	public void setSubMenuId(Long subMenuId) {
		this.subMenuId = subMenuId;
	}

	/**
	 * @return RootMenuEntity
	 */
	public RootMenuEntity getRootMenu() {
		return this.rootMenuEntity;
	}

	/**
	 * @param rootMenuEntity
	 */
	public void setRootMenu(RootMenuEntity rootMenuEntity) {
		this.rootMenuEntity = rootMenuEntity;
	}

	/**
	 * @return String
	 */
	public String getSubMenuName() {
		return this.subMenuName;
	}

	/**
	 * @param subMenuName
	 */
	public void setSubMenuName(String subMenuName) {
		this.subMenuName = subMenuName;
	}

	/**
	 * @return Long
	 */
	public Long getSubMenuOrder() {
		return this.subMenuOrder;
	}

	/**
	 * @param subMenuOrder
	 */
	public void setSubMenuOrder(Long subMenuOrder) {
		this.subMenuOrder = subMenuOrder;
	}

	/**
	 * @return Set
	 */
	public Set getMenuItems() {
		return this.menuItems;
	}

	/**
	 * @param menuItems
	 */
	public void setMenuItems(Set menuItems) {
		this.menuItems = menuItems;
	}

	@Override
	public boolean isPersisted() {
		// TODO Auto-generated method stub
		return false;
	}

}